package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BEPictureMapper;
import com.ruoyi.system.domain.BEPicture;
import com.ruoyi.system.service.IBEPictureService;

/**
 * 图片Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-08
 */
@Service
public class BEPictureServiceImpl implements IBEPictureService 
{
    @Autowired
    private BEPictureMapper bEPictureMapper;

    /**
     * 查询图片
     * 
     * @param id 图片主键
     * @return 图片
     */
    @Override
    public BEPicture selectBEPictureById(String id)
    {
        return bEPictureMapper.selectBEPictureById(id);
    }

    /**
     * 查询图片列表
     * 
     * @param bEPicture 图片
     * @return 图片
     */
    @Override
    public List<BEPicture> selectBEPictureList(BEPicture bEPicture)
    {
        return bEPictureMapper.selectBEPictureList(bEPicture);
    }

    /**
     * 新增图片
     * 
     * @param bEPicture 图片
     * @return 结果
     */
    @Override
    public int insertBEPicture(BEPicture bEPicture)
    {
        return bEPictureMapper.insertBEPicture(bEPicture);
    }

    /**
     * 修改图片
     * 
     * @param bEPicture 图片
     * @return 结果
     */
    @Override
    public int updateBEPicture(BEPicture bEPicture)
    {
        return bEPictureMapper.updateBEPicture(bEPicture);
    }

    /**
     * 批量删除图片
     * 
     * @param ids 需要删除的图片主键
     * @return 结果
     */
    @Override
    public int deleteBEPictureByIds(String[] ids)
    {
        return bEPictureMapper.deleteBEPictureByIds(ids);
    }

    /**
     * 删除图片信息
     * 
     * @param id 图片主键
     * @return 结果
     */
    @Override
    public int deleteBEPictureById(String id)
    {
        return bEPictureMapper.deleteBEPictureById(id);
    }
}
